home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-09
/
lhpmdb.zip
/
LHPMDEMO.DOC
< prev
next >
Wrap
Text File
|
1993-05-24
|
3KB
|
66 lines
Landscape & Herbaceous Plant Manager
Demo Script Documentation
May, 1993
Original demo script routine specifications by Steve Schafer. Adapted and
modified for LHPM by Robert Boufford.
As part of LHPMDB version 1.3, a simple self-running demo feature has been
added to the application. This is a trial feature and may not be available
in later versions.
For the demo to run, the script LHPMDEMO.SCR must be in the same directory
as the application, LHPMDB.EXE. If the script file is missing, the LHPM
DEMO menu command will be disabled.
The script can be modified with a text editor or word processor.
WARNING: Modification of the script may cause erratic results and could
potentially damage LHPM datafiles. Modification requires advanced knowledge
of the ASCII character set or Borland Pascal Turbo Vision keyboard
constants.
Each line of the script file is of the form:
COMMAND [optional space] PARAMETER
where COMMAND is a single character from the set { K k T t W w M m}. Lines
which begin with any other character are ignored. Each command character is
followed by an optional space and a parameter, the definition of which
varies according to the command. The commands and allowable parameters are
as follows:
T t This command sets the default delay time between commands read from
the script file. The parameter is the time value in milliseconds.
Since the script routine uses the DOS time-of-day function to measure
delays, the actual time resolution is on the order of 1/18 second.
This command may be issued as often as desired, the default delay time
remains in effect until the next T command is encountered.
W w This command causes a one-time delay, with the time again given in
milliseconds. Note that this delay is ADDED to the current default
delay time. This command is useful for pausing the action of a script.
K k This command inserts a single keystroke into the event queue. The
parameter can be a single ASCII character (other than a space); that
character is inserted into the event queue. The ^ form of control
character representation may be used to insert control characters into
the event queue, or the # construct may be used to insert any ASCII
character into the event queue. For example, "K ^G" inserts a
control-G, while "K #36" inserts a dollar sign. Use "K #32" to insert
a space into the event queue. In addition to the above, the kbXXXX
constants defined in the Turbo Vision manual may be used to insert
special key codes into the event queue. For example 'K kbAltF' inserts
an Alt-F into the event queue. Any of the kbXXXX codes (except
kbNoKey) may be used.
M m This command will open a Turbo Vision MessageBox with the string
parameter. A K command with the kbESC parameter must be given to
close the messagebox. There is about a 130 character limit to the
message string parameter.
Any syntax errors in a T or W command result in the command being ignored.
A syntax error in a K command results in an evNothing event being inserted
into the event queue.